package coolapk.cj.cj.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author zss
 * @created 2021-12-31 19:36
 * @description 获取qq群信息的配置信息
 */
@Component
public class CqhttpConfig {
    public static String url;
    public static String accessToken;
    public static String groupId;

    @Value("${cqhttp.url}")
    public void setUrl(String url) {
        CqhttpConfig.url = url;
    }

    @Value("${cqhttp.access-token}")
    public void setAccessToken(String accessToken) {

        CqhttpConfig.accessToken = accessToken;
    }
    @Value("${cqhttp.group-id}")
    public void setGroupId(String groupId) {
        CqhttpConfig.groupId = groupId;
    }

}
